{extend name="base" /} {block name="body"}
<div class="layui-body">
	<div class="navbar">
		<a><cite>代理管理</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href=""><cite>评论列表</cite></a>
	</div>
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<div class="layui-tab-content">
			<form class="layui-form layui-form-pane" action="" method="get">
			<div class="layui-inline">
				<div class="layui-input-inline">
					<input type="text" value="{$order_sn}" name="order_sn" placeholder="请输入订单编号" class="layui-input">
				</div>
				
			</div>
			<div class="layui-inline">
				<select name="status">
					<option value="0">审核状态</option>
					<option value="2" {if $status=='2' }selected{/if}>通过</option>
					<option value="1" {if $status=='1' }selected{/if}>未通过</option>
				</select>
			</div>
			<a class="layui-btn search_btn"><i class="fa fa-search"></i> 搜索</a>
			<a class="layui-btn layui-btn-status page-btns" href="{:url('status',['table'=>'good_comment','val'=>2])}"><i class="fa fa-check-circle-o"></i> 通过</a>
			<a class="layui-btn layui-btn-danger page-btns" href="{:url('status',['table'=>'good_comment','val'=>1])}"><i class="fa fa-ban"></i> 不通过</a>
			</form>
			<hr>
			<table class="layui-table layui-form">
				<thead>
					<tr>
						<th style="width: 30px;">
							<input type="checkbox" lay-skin="primary" lay-filter="allChoose">
						</th>
						<th class="text-center">订单编号</th>
                        <th class="text-center">商品名</th>
                        <th class="text-center">服务评分</th>
                        <th class="text-center">物流评分</th>
                        <th class="text-center">商品评分</th>
                        <th class="text-center">评价时间</th>
                        <th class="text-center">状态</th>
					</tr>
				</thead>
				<tbody>
					<form id="listForm">
						{foreach name="list" item="vo"}
						<tr>
							<td>
								<input type="checkbox" name="ids[]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary">
							</td>
							<td>{$vo.order_sn}</td>
							<td>{$vo.goods_name}</td>
							<td>{$vo.service_score}</td>
							<td>{$vo.express_score}</td>
							<td>{$vo.goods_score}</td>
							<td>{$vo.add_time}</td>
							<td>{if $vo.status==2}通过{else}未通过{/if}</td>
						</tr>
						{/foreach}
					</form>
				</tbody>
			</table>
			{$list->render()}
		</div>
	</div>
</div>
{/block}
{block name="js"}
<script>
	var GV = {
		current_controller: "{$controller}/comments"
	};
</script>
{/block}